<?php

declare(strict_types=1);

namespace app\shop\model\user;

use sheep\model\Common;
use app\shop\model\Coupon;

class Address extends Common
{
    protected $name = 'shop_user_address';

    protected $type = [
        'is_default' => 'boolean'
    ];
    // 追加属性
    protected $append = [
        
    ];


    public function scopeDefault($query)
    {
        return $query->where('is_default', 1);
    }
}
